/*
 *  arch/arm/mach-hisi/include/mach/irqs.h
 *
 *  Copyright (C) 2003 ARM Limited
 *  Copyright (C) 2000 Deep Blue Solutions Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
#ifndef ASM_HISI_IRQS
#define ASM_HISI_IRQS

#include <mach/platform.h>

/*
 *  IRQ interrupts definitions are the same as the INT definitions
 *  held within platform.h
 */
#if defined(CONFIG_RTOS_CPU_MODE)
#define IRQ_LOCALTIMER		30
#else
#define IRQ_LOCALTIMER		29
#endif

#define IRQ_LOCALWDOG		30
#define PMU_MAX_IRQS		16

/* reduce memory overhead for A9 be */
#if defined(CONFIG_CORTEX_A9) && defined(CONFIG_CPU_BIG_ENDIAN)
#define HISI_MAX_IRQS        (256)
#else
#define HISI_MAX_IRQS		(512)
#endif

#define NR_IRQS		(HISI_MAX_IRQS)
#define MAX_GIC_NR		1
#define FIQ_START		0

#endif
